import * as moment from 'moment';
import * as momentDurationFormatSetup from 'moment-duration-format';

momentDurationFormatSetup(moment);

// @ts-expect-error: ignore extend type error.
Array.prototype.random = function () {
  return this[Math.floor(Math.random() * this.length)];
};
